<template>
  <el-table :data="article" style="width: 80%;padding-top: 15px;margin: auto">
    <el-table-column label="标题" min-width="300">
      <template slot-scope="{ row }">
        <router-link
          :to="{
            path: '/covid-epidemicinformation/article',
            query: { id: row.id }
          }"
        >
          <a @click="clickArticle(row)">
            {{ row.title }}
          </a>
        </router-link>
      </template>
    </el-table-column>
    <el-table-column label="发布时间" align="center">
      <template slot-scope="{ row }">
        <el-tag>
          {{ row.publishTime }}
        </el-tag>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
// import { transactionList } from '@/api/remote-search'

export default {
  props: {
    article: { type: Array, default: [] }
  },
  methods: {
    clickArticle(val) {
      // console.log(val)
    }
  }
}
</script>
